<html>
	<head>
		<script type="text/javascript" src="javascript/sha1.js"></script>		

	
	
	</head>
	
	<body>
	<input type="text" maxlength="50" size="50" value="enter password" name="password"><input type="button" value="generate hash" name="generateHash" onclick="var oPassword = document.getElementById('password'); var oHash = document.getElementById ('hash'); oHash.value = hex_sha1(oPassword.value);">
	
	<br />
	
	<input type="text" maxlength="50" size="50" value="aaa" name="password" id="hash">
	
	</body>
</html>